#!/bin/bash
#批量修改文件拓展名

read -p "请输入现有文件拓展名：" a1
read -p "请输入修改文件拓展名：" a2


for i in `ls *.${a1}`
do
	mv $i    "${i%.*}.$a2"
done
